<!--
  // Creation History
  // --------------------------------------------------------------
  //	Company:			HTHK
  //	NAME:				CompanyList.jsp
  //	TITLE:				Company List
  //	FUNCTION:			List the Searching result.
  //	BY:					Jet Tao
  //	DATE:				09/12/2003
  // --------------------------------------------------------------
-->

<html>
<%@ include file="../tssheader.jsp" %>
<%@ page import="tss.company.*" %>
<body>
<%
	 CompanyBean[] Companys = (CompanyBean[])request.getAttribute("Companys");
     if (Companys==null)
        Companys = new Company[0];  
%>
<body >
<h2>Department Maintenance</h2>
<INPUT type=button value=Back onclick="location.href= '<%=contextPath%>/tss/company/CompanySearch.jsp'">
<h5>Total: <%=Companys.length%> Department(s)</h5>
<table cols=6 border=1 >
<thead>
  <td><b>Department&nbsp;Code</b></td>
  <td><b>Department&nbsp;Name</b></td>
</thead>
<%  for (int i=0; i<Companys.length; i++)
    {           
%>
<tr>
	<td><a	href="<%=contextPath%>/servlet/tss.company.CompanySearch?formAction=Update&	company_code=<%=Companys[i].getCompany_code()%>"
	><%=Companys[i].getCompany_code()%></a></td>
    <td><%=Companys[i].getCompany_name()%></td>

</tr>
<%  } %>
</table>
</body>
<%@ include file="../tssfooter.jsp" %>
</body>
</html>

